package com.yonyou.pmclouds.processphoto.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

@Table(name="pm_processphoto")
@Setter
@Getter
public class ProcessPhotoVO extends SuperVO{

    private static final long serialVersionUID = 2821040654896074686L;

    /**
     * 项目
     */
    public static String PK_PROJECT = "pk_project";
    /**
     * 工序
     */
    public static String PK_PROCESS = "pk_process";
    /**
     * 工程部位
     */
    public static  String PK_PROJECTPART = "pk_projectpart";
    /**
     * 制单人姓名
     */
    public static String CREATOR_NAME = "creatorName";
    /**
     * 制单人
     */
    public static String CREATOR = "creator";
    /**
     * 引用的基础数据
     */
    public static String[] REF_FILEDS ={PK_PROJECT,PK_PROCESS,PK_PROJECTPART};

    
    /**
     * 工序拍照单据字段
     */
    @Id
    private String pkProcessphoto;
    private String pk_project;
    private String pk_process;

    /** 前台页面显示字段**/
    //项目名称
    @Transient
    private String project_name;
    //项目编码
    @Transient
    private String project_code;
    //工序名称
    @Transient
    private String processName;
    // 图片
    @Transient
    private String[] pictures;
    @Transient
    private String picture_address; // 照片真实地址(用于存储HTML形式)
    //图片数量
    @Transient
    private Integer picturesCount;
    // 制单人
    @Transient
    private String creatorName;

    
    /** 通用字段**/
    @Column(name="pk_tenant",updatable=false)
    private String pk_tenant;
    @Column(name="creator",updatable=false)
    private String creator;
    @Column(name="creationtime",updatable=false)
    private Date creationtime;
    private String modifier;
    private Date modifytime;
    // 经度
    private BigDecimal longitude;
    // 纬度
    private BigDecimal latitude;
    // 位置信息
    private String position;
    private String bill_type;
    private byte billstatus;
    // 备注
    private String memo;
    //工程部位
    private String pkProjectpart;
    @Transient
    private String projectpartName;
    @Transient
    private int picNum;

    @Transient
    private String orgName;
    @Transient
    private String strCreationtime;
    @Transient
    private String strBillstatus;
    @Transient
    private String manager;
    @Transient
    private String managerName;

}
